package com;

import com.pojo.Person;
import org.apache.ibatis.annotations.One;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;

/**
 * @author 123456
 @@ -24,4 +28,11 @@ public interface PersonMapper {
 }
 Person findPersonById(Integer id);

 @Select("select * from tb_person where id =#{id}"){
 @Results({
 @Result(column = "card_id",property = "card",
 one = @One(select = "com.mapper.IdCardMapper.selectTIdCardById"){
 }
 })
 Person selectPersonById(int id);{
 }

